<include file="__PUBLIC__/header"/>
<div class="page-container">
    <!--菜单-->
    <div class="cl pd-5 bg-1 bk-gray mt-10 mb-10">
        <span class="l">
            <a href="javascript:;"
               onclick="qz_layer_open('用户授权','{|U:'addToGroup',array('group_id'=>$this_group['id'])}',550,200)"
               class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
        </span>
        <span class="r" style="line-height:1.6em;margin-top:3px"></span>
    </div>
    <!--列表-->
    <table class="table table-border table-bordered table-bg mt-10 table-sort" id="table">
        <thead>
        <tr class="text-c">
            <th><input type="checkbox" name="" value=""/></th>
            <th>UID</th>
            <th>用户名</th>
            <th>昵称</th>
            <th>最后登录时间</th>
            <th>最后登录IP</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <list from="$data" name="$qz">
            <tr class="text-c">
                <td><input type="checkbox" name="id[]" value="{$qz.id}"></td>
                <td>{$qz.id}</td>
                <td>{$qz.username}</td>
                <td>{$qz.nickname}</td>
                <td>{$qz.last_login_time}</td>
                <td>{$qz.last_login_ip}</td>
                <td>{$qz.status_text}</td>
                <td width="120">
                    <a title="删除" href="javascript:;"
                       onclick="ajax_req('{|U:'removeFromGroup',array('group_id'=>$this_group['id'])}',{'id':{$qz.id}})"
                       class="ml-5 c-blue" style="text-decoration:none">解除授权</a>
                </td>
            </tr>
        </list>
    </table>
    <div class="qz-page">
        {$page}
    </div>
</div>
<include file="__PUBLIC__/footer"/>
<script>
    /**
     * 批量解除授权
     * @param url 批量恢复地址，一般为 {:url('remove')}
     * @param checkbox_group checkbox组的名称，默认 id[]
     */
    function authRemove_all(url, checkbox_group) {
        _del_recycle_all(url, checkbox_group || 'id[]', "您确定要解除这些项目？", "已解除！")
    }
</script>
</body>
</html>